
#追加写  模式是 mode=a
file=open("test.txt","a",encoding="utf-8")
file.write("追加写")
file.close()